@extends('layouts.ajax_master')
@section('app_js')

@stop
@section('content')
    <table id="example" class="table table-striped responsive-utilities jambo_table">
        <thead>
        <tr class="headings">
            <th>
                <input type="checkbox" class="tableflat">
            </th>
            <th>编号</th>
            <th>现货名称</th>
            <th>级别</th>
            <th>价格</th>
            <th>发布人</th>
            <th>状态</th>
            <th>申请时间</th>
            <th class=" no-link last"><span class="nobr">操作</span>
            </th>
        </tr>
        </thead>

        <tbody>
        @foreach($product_list as $k => $p)
            <tr class="even pointer img-box">
                <td class="a-center ">
                    <input type="checkbox" class="tableflat">
                </td>
                <td class=" ">{{$p->product_id}}</td>
                <td class="tr-time">
                    <img src="@if(empty($p->product_img))/resource/img/floor_shop_none.png @else {{$p->product_img}} @endif" alt="">
                    <span>{{$p->product_name}}</span>
                </td>
                <td class="tr-time">{{$p->level}}</td>
                <td class=" ">{{$p->price}}</td>
                <td class=" ">{{$p->user_name}}</td>
                <td class=" ">@if($p->status==ProductEnum::PRODUCT_EXAMINE_PASS)<span style="color: #4d9200">已审核</span> @elseif($p->status==ProductEnum::PRODUCT_EXAMINE_ING)<span style="color: orange">审核中</span> @else <span style="color: red">未审核通过</span> @endif</td>
                <td>{{date('Y-m-d',$p->created)}}</td>
                <td class=" last">
                    @if($p->status==2)
                        <a href="/admin/new_resource_examine?product_id={{ $p->product_id }}" >审核</a>
                    @endif
                    <a href="javascript:;"  class="delete"  data-product_id="{{ $p->product_id }}">删除</a>
                </td>
            </tr>
        @endforeach
        </tbody>

    </table>